<?php
class CF_Server
{
	public static function getDocRoot()
	{
		return $_SERVER['DOCUMENT_ROOT'];	
	}
	
	public static function getRequestMethod()
	{
		return $_SERVER['REQUEST_METHOD'];
	}
	
	public static function getRequestUri()
	{
		return $_SERVER['REQUEST_URI'];
	}
	
	public static function getRequestIp()
	{
		return $_SERVER['REMOTE_ADDR'];
	}
	
	public static function getIp()
	{
		return $_SERVER['SERVER_ADDR'];
	}
	
	public static function getHost()
	{
		return $_SERVER['HTTP_HOST'];
	}
	
	public static function getPort()
	{
		return $_SERVER['SERVER_PORT'];
	}
}